﻿
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace XHD.WXZJ.Posts
{
    /// <summary>
    /// 岗位基础类
    /// </summary>
        //[Table("AbpPosts")]
    public class PostsBase : FullAuditedEntity<int>, IMayHaveTenant
    {
       /// <summary>
       /// 岗位名称长度
       /// </summary>
        public const int MaxNameLength = 255;

        /// <summary>
        /// 租户ID 如果岗位存在租户则为空否则有值.
        /// 
        /// </summary>
        public virtual int? TenantId { get; set; }

        [Required]
        public virtual int DepartmentId { get; set; }

        [Required]
        [StringLength(255)]
        public virtual string Name { get; set; }
    }
}
